body {
    margin: 0;
    padding: 0;
    height: 100vh;
    /* font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #34495e;
}

.text {
    font-size: 100px;
    color: #e2dcdc;
    font-weight: 900;
    position: relative;
}


.text::after {
    content: "";
    position: absolute;
    width: 36px;
    height: 14px;
    background-color: red;
    border-radius: 10px;
    bottom: 20px;
    left: -54px;
    animation: trans 1.1s linear infinite;
}

@keyframes trans {
   20% {
    opacity: 1;
   }
   
   90% {
    opacity: 0.8;
   }

   100% {
    left: calc(100% + 18px);
    opacity: 0;
   }
}

.text span{
    display: inline-block;
    animation: wave 1.1s linear infinite;

}

@keyframes wave {
    50% {
        transform: translateY(-40px);
    }
}

.text span:nth-child(1){
    animation-delay: 100ms;
}
.text span:nth-child(2){
    animation-delay: 200ms;
}
.text span:nth-child(3){
    animation-delay: 300ms;
}
.text span:nth-child(4){
    animation-delay: 400ms;
}

.text span:nth-child(5){
    animation-delay: 500ms;
}
.text span:nth-child(6){
    animation-delay: 600ms;
}
.text span:nth-child(7){
    animation-delay: 700ms;
}
.text span:nth-child(8){
    animation-delay: 800ms;
}

.container {
    position: absolute;
    top: 2%;
}

nav {
    position: relative;
    width:auto;
    height: 50px;
    background-color: #405161;
    border-radius: 8px;
    box-shadow: 0 5px 6px rgba(0, 0, 0, 0.4);
}

nav a{
    position: relative;
    display:block;
    float: left;
    font-size: 20px;
    line-height: 50px;
    width:100px;
    height: 50px;
    color: #f1f1f1;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    /* background-color: #00b894; */
    z-index: 10;
    border-radius: 8px;
}

nav a:nth-child(1){
    padding-left: 10px;
    padding-right: 5px;
}
nav a:nth-child(2){
    padding-left: 5px;
    padding-right: 5px;
}
nav a:nth-child(3){
    padding-left: 5px;
    padding-right: 10px;
}

nav .animation{
    position: absolute;
    height: 100%;
    background-color: #f97f51;
    z-index: 9;
    border-radius: 8px;
}

nav a:nth-child(1):hover{
    background-color: #f97f51;
}
nav a:nth-child(2):hover{
    background-color: #f97f51;
    /* left: 100px; */
}
nav a:nth-child(3):hover{
    background-color: #f97f51;
    /* left: 200px; */
}